import Vue from "vue";
import App from "./App.vue";
import router from "./router";

import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
Vue.use(ElementUI);

import "animate.css";
// import { WOW } from "wowjs/dist/wow2.min";
import { WOW } from "wowjs";
Vue.prototype.$wow = new WOW({
  boxClass: "wow", // default
  animateClass: "animated", // default
  offset: 0, // 触发动画时到元素的距离（偏移量）
  mobile: true, // 是否适用移动端
  live: false, // 异步加载的内容是否有效
  callback: function(box) {
    // console.log("WOW: animating <" + box.tagName.toLowerCase() + ">")
  },
  scrollContainer: null // 可选滚动容器选择器，否则使用窗口
});
Vue.config.productionTip = false;

new Vue({
  router,
  render: h => h(App)
}).$mount("#app");
